package com.dit.dao;

import com.dit.entity.Sme;
import com.dit.entity.SmeExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface SmeMapper {
   
   	int countByExample(SmeExample example);

	int deleteByExample(SmeExample example);

	int deleteByPrimaryKey(String id);

	int insert(Sme record);

	int insertSelective(Sme record);

	List<Sme> selectByExample(SmeExample example);

	Sme selectByPrimaryKey(String id);

	int updateByExampleSelective(@Param("record") Sme record,
			@Param("example") SmeExample example);

	int updateByExample(@Param("record") Sme record,
			@Param("example") SmeExample example);

	int updateByPrimaryKeySelective(Sme record);

	@Select("SELECT * FROM sme")
	@ResultMap(value = "BaseResultMap")
	List<Sme> selectAll();

	int updateByPrimaryKey(Sme record);
	
	
	


}